<script>
	//$('#nip').focus();
	$(document).ready(function(){
		$('#id_psb<?=$objectid?>').change(function(){
			$('#id_kelompok<?=$objectid?>').load(base_url+'prosedur/get_gelombang_by_psb/'+$('#id_psb<?=$objectid?>').val());
		});
	});
</script>
<form id="form1<?=$objectid?>" method="post" style="margin:10px">
	<input type="hidden" name="id" value="<?=$id?>">
	<input type="hidden" name="tahun_masuk" value="<?=$tahun_masuk?>">
	
	<h4 class="labeltitle">Data Penerimaan</h4>
	<hr class="labelseparator">
	<div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">No Pendaftaran</label>: 
        <input name="no_pendaftaran" size="20" value="<?=$no_pendaftaran?>">
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">PSB</label>: 
        <b><?=$this->mdl_proses_penerimaan->get_title_penerimaan()?></b>
		<select name="id_psb" id="id_psb<?=$objectid?>" style="width:300px;display:none;">
			<?=$this->mdl_prosedur->option_proses_penerimaan(array('value'=>$id_psb))?>
		</select>
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Gelombang</label>: 
        <b><?=$this->mdl_kelompok_penerimaan->get_title_kelompok()?></b>
		<select name="id_kelompok" id="id_kelompok<?=$objectid?>" style="width:300px;display:none;">
			<?=$this->mdl_prosedur->option_kelompok_penerimaan(array('value'=>$id_kelompok, 'id_psb'=>$id_psb))?>
		</select>
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Uang Sumbangan</label>: Rp.&nbsp;
        <input name="uang_sumbangan" size="15" value="<?=$uang_sumbangan?>" maxlength="10">
    </div>
    <div class="fitem" >
        <h4 class="labeltitle">Persyaratan</h4>
		<hr class="labelseparator">
        <?=$this->mdl_calon_siswa->generate_persyaratan($aksi, $id)?>
    </div>
	
	
	<h4 class="labeltitle">Data Calon Siswa</h4>
	<hr class="labelseparator">
	<div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Nama</label>: 
        <input name="nama" size="30" value="<?=$nama?>">
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Jenis Kelamin</label>: 
		<label><input type="radio" name="jk" id="radio" value="L" <?=$jk=='L'?'checked="checked"':''?>/> Laki-Laki</label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label><input type="radio" name="jk" id="radio" value="P" <?=$jk=='P'?'checked="checked"':''?>/> Perempuan</label>
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Tmp Lahir</label>: 
        <input name="tmp_lahir" size="30" value="<?=$tmp_lahir?>">
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Tgl Lahir</label>: 
		<input name="tgl_lahir" value="<?=$tgl_lahir?>" class="easyui-datebox" size="13" data-options="formatter:DateFormatter, parser:DateParser">
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Agama</label>: 
		<select name="Agama" id="Agama" style="width:100px;">
			<?=$this->mdl_prosedur->option_agama(array('value'=>$Agama))?>
		</select>
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Kewarganegaraan</label>: 
		<label><input type="radio" name="kewarganegaraan" id="radio" value="WNI" <?=$kewarganegaraan=='WNI'?'checked="checked"':''?>/> WNI</label>&nbsp;&nbsp;&nbsp;&nbsp;
		<label><input type="radio" name="kewarganegaraan" id="radio" value="WNA" <?=$kewarganegaraan=='WNA'?'checked="checked"':''?>/> WNA</label>
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Anak ke</label>: 
        <input name="anakke" size="6" value="<?=$anakke?>"> dari 
		<input name="jml_saudara" size="6" value="<?=$jml_saudara?>"> saudara
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Bahasa Keseharian</label>: 
        <input name="bahasa" size="30" value="<?=$bahasa?>">
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Photo</label>: 
        <input name="foto" size="30" value="<?=$foto?>">
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Alamat</label>: 
		<textarea name="alamat" id="alamat" cols="40" rows="4"><?=$alamat?></textarea>
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Telepon</label>: 
        <input name="tlp" size="30" value="<?=$tlp?>">
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Asal Sekolah</label>: 
        <input name="asal_sekolah" size="30" value="<?=$asal_sekolah?>">
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Gol Darah</label>: 
		<select name="gol_darah" id="gol_darah" style="width:100px;">
			<?=$this->mdl_prosedur->option_golongandarah(array('value'=>$gol_darah))?>
		</select>
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Riwayat Penyakit</label>: 
		<textarea name="riwayat_penyakit" id="riwayat_penyakit" cols="40" rows="4"><?=$riwayat_penyakit?></textarea>
    </div>
	
	<h4 class="labeltitle">Data Orang Tua/Wali</h4>
	<hr class="labelseparator">
	<table width="100%" border="0" cellpadding="2" cellspacing="2">	
		<tr style="font-size:13px; font-weight:bold;">
			<td width="50%" align="center" style="border:solid 1px #e5e5e5;padding:3px 2px 3px 2px;background-color:#a5e7ec">Ayah</td>
			<td width="50%" align="center" style="border:solid 1px #e5e5e5;padding:3px 2px 3px 2px;background-color:#eeb5e3">Ibu</td>
		</tr>
		<tr>
			<td style="border:solid 1px #e5e5e5;padding:3px 2px 3px 2px;background-color:#e1fdff">
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Nama</label>: 
					<input name="nama_ayah" size="20" value="<?=$nama_ayah?>">
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;"></label>
					<label><input type="checkbox" name="alm_ayah" id="alm_ayah" <?=$alm_ayah=='1'?'checked="checked"':''?>/>&nbsp;&nbsp;Almarhum</label>
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Status</label>: 
					<select name="status_ayah" id="status_ayah" style="width:100px;">
						<?=$this->mdl_prosedur->option_status_ortu(array('value'=>$status_ayah))?>
					</select>
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Tmp Lahir</label>: 
					<input name="tmp_lahir_ayah" size="20" value="<?=$tmp_lahir_ayah?>">
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Tgl Lahir</label>: 
					<input name="tgl_lahir_ayah" value="<?=$tgl_lahir_ayah?>" class="easyui-datebox" size="13" data-options="formatter:DateFormatter, parser:DateParser">
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Pendidikan</label>: 
					<input name="pendidikan_ayah" size="20" value="<?=$pendidikan_ayah?>">
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Pekerjaan</label>: 
					<input name="pekerjaan_ayah" size="20" value="<?=$pekerjaan_ayah?>">
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Penghasilan</label>: 
					<input name="penghasilan_ayah" size="20" value="<?=$penghasilan_ayah?>">
				</div>
			</td>
			<td style="border:solid 1px #e5e5e5;padding:3px 2px 3px 2px;background-color:#ffe1f9">
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Nama</label>: 
					<input name="nama_ibu" size="20" value="<?=$nama_ibu?>">
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;"></label>
					<label><input type="checkbox" name="alm_ibu" id="alm_ibu" <?=$alm_ibu=='1'?'checked="checked"':''?>/>&nbsp;&nbsp;Almarhumah</label>
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Status</label>: 
					<select name="status_ibu" id="status_ibu" style="width:100px;">
						<?=$this->mdl_prosedur->option_status_ortu(array('value'=>$status_ibu))?>
					</select>
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Tmp Lahir</label>: 
					<input name="tmp_lahir_ibu" size="20" value="<?=$tmp_lahir_ibu?>">
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Tgl Lahir</label>: 
					<input name="tgl_lahir_ibu" value="<?=$tgl_lahir_ibu?>" class="easyui-datebox" size="13" data-options="formatter:DateFormatter, parser:DateParser">
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Pendidikan</label>: 
					<input name="pendidikan_ibu" size="20" value="<?=$pendidikan_ibu?>">
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Pekerjaan</label>: 
					<input name="pekerjaan_ibu" size="20" value="<?=$pekerjaan_ibu?>">
				</div>
				<div class="fitem" >
					<label style="width:80px;padding:2px 0 1px 3px;">Penghasilan</label>: 
					<input name="penghasilan_ibu" size="20" value="<?=$penghasilan_ibu?>">
				</div>
			</td>
		</tr>
	</table>
	<br>
	<div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Nama Wali</label>: 
        <input name="nama_wali" size="30" value="<?=$nama_wali?>">
    </div>
	<div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Alamat Ortu</label>: 
		<textarea name="alamat_ortu" id="alamat_ortu" cols="40" rows="4"><?=$alamat_ortu?></textarea>
    </div>
    <div class="fitem" >
        <label style="width:120px;padding:2px 0 1px 3px;">Telepon</label>: 
        <input name="tlp_ortu" size="30" value="<?=$tlp_ortu?>">
    </div>
</form>


